var ip = getRequestPrefix();
/**
 * 获取url请求前缀
 * @return http://127.0.0.1/cheliangzhihui
 */
function getRequestPrefix() {
    // return urlPrefix = 'http://192.168.0.160:8083/footballAssociation';
    return urlPrefix = 'http://newtest.sdfa.org.cn/footballAssociation';
    // 获取网络协议
    // 获取主机名+端口号
    var domainPort = window.location.host;
    // 获取发布项目的名称
    // 获取路径
    var url = window.location.pathname;
    var webApp = url.split('/')[1];
    // http://127.0.0.1/demo
    var urlPrefix = "http://" + domainPort + "/" + webApp;
    return urlPrefix;
}
//视频管理
var video_manage = ip + "/admin/video/findVideoList" //视频列表
var addVideo = ip + "/admin/video/addVideo" //视频添加
var uploadVideo = ip + "/admin/video/uploadVideo" //视频上传
var delVideo = ip + "/admin/video/delVideo"; //删除视频
//赛事管理
var competition_manage = ip + "/admin/competition/findCompetitionList" //赛事列表
var addCompetition = ip + "/admin/competition/addCompetition" //赛事添加
var uploadCompetition = ip + "/admin/competition/uploadImg" //视频上传
var delCompetition = ip + "/admin/competition/delCompetition"; //赛事视频
var approvalNewcompetition = ip + "/admin/newCompetition/approvalNewcompetition" //审批赛事
var uploadCompetitions = ip + "/admin/competition/uploadImgs" //赛事简介图片上传
// var zbfList = ip + '/admin/localAssociation/getLocalAssociation'//获取主办方列表
var zbfInfo = ip + '/admin/localAssociation/getLocalAssociationById' //获取主办方法人信息和注册资金
//用户管理
var user_manage = ip + "/admin/findUserPage" //用户管理列表
var updateUser = ip + "/admin/updateUser" //修改用户
var updateIsHiddenUserById = ip + "/admin/updateIsHiddenUserById"; //删除用户
var uploadImg = ip + "/admin/uploadImg"; //上传头像
var reset = ip + "/admin/resetPassword"; //重置密码
var addUser = ip + "/admin/addUser"; //添加用户
var downLoadUserList = ip + '/admin/downloadExcelTemplate' //下载用户模板
var importUserList = ip + '/admin/uploadUser' //批量导入用户
//题库管理
var examination = ip + "/admin/examination/getExaminationPage"; //题库管理
var addExamination = ip + "/admin/examination/add"; //添加题目
var uploadExaminationImg = ip + "/admin/examination/uploadImg"; //上传头像
var delExamination = ip + "/admin/examination/delExamination"; //删除题目
//考试审核
var getTestPeople = ip + "/admin/examineApply/getExaminationPage"; // 查询考核报名待审核列表 参数page limit
var submitTestPeoPle = ip + "/admin/examineApply/ExaminationApply"; //提交审核 参数 id     examineStatus：审核状态 （1通过2拒绝）   refusalReasons：拒绝原因    examinationAddress：考试地点    examinationTime   考试时间
//裁判员列表
var getJudgeList = ip + "/admin/referee/getRefereePage"; //获取裁判员列表
var delJudgeList = ip + "/admin/referee/delReferee"; //删除裁判员数据
var uploadJudgeImg = ip + "/admin/referee/uploadImg"; //上传头像
var uploadJudgeTijianImg = ip + "/admin/referee/medicalReportUploadImg"; //上传体检报告
var saveJudgeReg = ip + "/admin/referee/addReferee"; //保存裁判员注册列表
var getAssociationList = ip + "/admin/referee/getAssociationList"; //获取协会列表
var uploadReferee = ip + "/admin/referee/uploadReferee"; //裁判员导入
var refereeDownLoad = ip + "/admin/referee/downloadExcelTemplate"; //下载裁判员导入模板
//教练员列表
var getTrainerList = ip + "/admin/coach/getCoachPage"; //获取教练员列表
var saveTrainerReg = ip + "/admin/coach/addOrUpdateCoach"; //保存教练员注册列表
var uploadTrainerImg = ip + "/admin/coach/uploadImg"; //上传头像
var uploadTrainerTijianImg = ip + "/admin/coach/medicalReportUploadImg"; //上传体检报告
var uploadTrainerHetong = ip + "/admin/coach/contractUploadImg"; //上传合同
var delTrainerList = ip + "/admin/coach/delCoach"; //删除教练员数据
var coachDownloadExcelTemplate = ip + "/admin/coach/downloadExcelTemplate" //教练员模板下载
var uploadCoach = ip + "/admin/coach/uploadCoach" //教练员导入
//广告管理
var getAdvertisementPage = ip + "/admin/advertisement/getAdvertisementPage"; //广告列表
var addOrUpdateAdvertisement = ip + "/admin/advertisement/addOrUpdateAdvertisement"; //添加/修改广告
var delAdvertisement = ip + "/admin/advertisement/delAdvertisement"; //删除广告
var uploadAdvertisement = ip + "/admin/advertisement/uploadImg"; //上传广告图片
var updateAdvertisementIsHidden = ip + "/admin/advertisement/updateAdvertisementIsHidden"; //是否隐藏
//场地考试
var getFieldExaminationPage = ip + "/admin/fieldExamination/getFieldExaminationPage"; //场地考试列表
var uploadFieldExamination = ip + "/admin/fieldExamination/uploadFieldExamination"; //成绩导入
var delFieldExamination = ip + "/admin/fieldExamination/delFieldExamination"; //删除成绩
var downLoad = ip + "/admin/fieldExamination/downloadExcelTemplate"; //下载导入模板
//文化课考试设置
var findExaminationSetting = ip + "/admin/examineApply/findExaminationSetting"; //获取考试设置信息
var examinationSettingSave = ip + "/admin/examineApply/examinationSettingSave"; //考试设置保存
var sendSms = ip + "/admin/sendSms"; //发送短信验证码
var LOGIN = ip + "/admin/doLogin"; //登陆
var LOGINOUT = ip + "/admin/logout"; //退出登录
var register = ip + "/admin/register"; //注册
var findAllNewCompetitionList = ip + "/admin/newCompetition/findAllNewCompetitionList" // 赛事信息列表
//发布赛事
var addNewCompetition = ip + "/admin/newCompetition/addNewCompetition" //发布赛事
var getTeamList = ip + "/admin/round/getTeamList" //获取球队
var addOrUpdateRoundInfo = ip + "/admin/round/addOrUpdateRoundInfo" //保存赛程信息
// var getRoundInfoList = ip + "/admin/round/getRoundInfoList" //获取赛程信息ID
var getRoundInfoList = ip + "/admin/round/getRoundInfoList" //获取赛程信息
var getPlayerByTeamId = ip + "/admin/player/getPlayerByTeamId" //根据球队ID获取球员
var addOrUpdateCompetitionData = ip + "/admin/competitionData/addOrUpdateCompetitionData" //保存球员数据
var addOrUpdateRefereeInfo = ip + "/admin/round/addOrUpdateRefereeInfo" //保存选择裁判
var getRecruitrefereeListByCompetitionId = ip + "/admin/referee/getRecruitrefereeListByCompetitionId" //根据赛事id查询招募的裁判列表
var relationTel = ip + "/admin/relationTel" //关联账号
var checkRelationTel = ip + "/admin/checkRelationTel" //判断是否关联账号
var findRoundByCompetitionId = ip + "/admin/round/findRoundByCompetitionId" // 赛事详情
var findPrimaryCompetitionData = ip + "/admin/competitionData/findPrimaryCompetitionData" //场次信息列表
var findNewcompetitionMessageListByAdminId = ip + "/admin/newCompetition/findNewcompetitionMessageListByAdminId" //裁判员收到通知列表
var recruitreferee = ip + "/admin/newCompetition/recruitreferee" //裁判员报名
var findRefereeByName = ip + "/admin/referee/findRefereeByName" //根据姓名查询裁判员列表
var findNewcompetitionById = ip + "/admin/newCompetition/findNewcompetitionById" //赛事详情
var addnewcompetitionMessage = ip + "/admin/referee/addnewcompetitionMessage" //赛事招募裁判员发送通知
var getRecruitrefereeList = ip + "/admin/newCompetition/getRecruitrefereeList" //裁判员报名审核表
var confirmRecruitment = ip + "/admin/newCompetition/confirmRecruitment" //确认招募
var getNewcompetitionList = ip + "/admin/newCompetition/getNewcompetitionList" //审批赛事列表
var teamapply = ip + "/admin/newCompetition/teamapply" //球队报名
var getNewCompetitionListByUserId = ip + "/admin/getNewCompetitionListByUserId"; //裁判员收到通知的赛事条数
//俱乐部管理
var getClubPage = ip + "/admin/club/getClubPage" //俱乐部管理列表
//各地足协管理
var getLocalAssociationPage = ip + "/admin/localAssociation/getLocalAssociationPage" //各地足协管理
var findUserById = ip + "/admin/findUserById" //个人信息
var getNewCompetitionTeamListTeam = ip + "/admin/newCompetition/getNewCompetitionTeamListTeam" //查询待审批的赛事列表
var getRoundList = ip + "/admin/round/getRoundList" //获取赛程信息
var delCompetition_del = ip + "/admin/newCompetition/delCompetition" //赛事列表的删除
var getPlayerPage = ip + "/admin/player/getPlayerPage" //球员列表
var playerGetTeamList = ip + "/admin/player/getTeamList" //球队列表
var findPlayerById = ip + "/admin/player/findPlayerById" //球员详情
var updatePlayerById = ip + "/admin/player/updatePlayerById" //球员编辑
var uploadPlayerImg = ip + "/admin/player/uploadImg" //球员头像
var transfer = ip + "/admin/player/transfer" //球员转会
var getPlayerExperience = ip + "/admin/player/getPlayerExperience" //根据球员id获取球员的比赛经历
var allotPlayerLevel = ip + "/admin/player/allotPlayerLevel" //修改等级
var findExaminationScorePage = ip + "/admin/fieldExamination/findExaminationScorePage" //文化课考试成绩列表
var getExaminationAdoptList = ip + "/admin/fieldExamination/getExaminationAdoptList" //考试通过列表
var authUserInfo = ip + "/admin/authUserInfo" //团体认证审核
var getGroupUserPage = ip + "/admin/getGroupUserPage" //团体认证列表
var roleList = ip + "/admin/role/roleList" //角色列表
var roleSave = ip + "/admin/role/save" //添加角色
var deleteRole = ip + "/admin/role/delete" //删除角色
var findMeau = ip + "/admin/auth/findMeau" //首页菜单
var getAdminPage = ip + "/admin/getAdminPage" //管理员列表
var adminSave = ip + "/admin/addAdmin" //添加oa账号
var delAdmin = ip + "/admin/delAdmin" //拉黑oa用户
var resetPass = ip + "/admin/resetPass" //重置密码
var findAllNewCompetitionListByIssueStatus = ip + "/admin/newCompetition/findAllNewCompetitionListByIssueStatus" //已发布未完善赛事数据的列表
var findNewcompetitionByIds = ip + "/admin/newCompetition/findNewcompetitionByIds" // 裁判查询赛事详情
var getOrderList = ip + "/admin/order/getOrderList" //视频列表
var findNewCompetitionList = ip + "/admin/newCompetition/findNewCompetitionList" //获取oa创建的赛事列表
var findNewcompetitionByIds1 = ip + "/admin/newCompetition/findNewcompetitionByIds" //根据oa赛事id查询赛事详情
//线下考试设置
var findFieldExaminationSetting = ip + "/admin/examineApply/findFieldExaminationSetting"; //获取考试设置信息
var fieldExaminationSettingSave = ip + "/admin/examineApply/fieldExaminationSettingSave"; //考试设置保存
var findRefereeByCity = ip + "/admin/referee/findRefereeByCity"; //查询当前市裁判员
var getUnread = ip + "/admin/referee/getUnread"; //获取未读已读消息人数 参数 matchId：赛事id
var againSendMessage = ip + "/admin/referee/againSendMessage"; //再次发送裁判员招募通知 参数 matchId：赛事id
var getTeacherList = ip + "/admin/examineApply/getTeacherList"; //获取裁判员教练员列表
var updatePassword = ip + "/admin/updatePassword"; //修改密码
var downloadMatchExcelTemplate = ip + "/admin/referee/downloadMatchExcelTemplate"; //赛事裁判员导入模板导入下载模板
var uploadMatchReferee = ip + "/admin/referee/uploadMatchReferee"; //导入赛事裁判员
var updateNewCompetitionByReferee = ip + "/admin/newCompetition/updateNewCompetitionByReferee"; //裁判员招募信息
// 消息管理
var templateList = ip + '/admin/message/getMessageList' //消息模板数据
var msgRecord = ip + '/admin/message/getMessageUserList' //发送记录列表
var delAnnouse = ip + '/admin/message/delMessage' //模板消息删除
var delMsgRecord = ip + '/admin/message/delMessageUser' //删除发送记录
var editAnnouse = ip + '/admin/message/addMessage' //添加或修改消息模板
var getUserIdHaveSessionId = ip + '/admin/findUserPage' //获取用户列表
var sendMsg = ip + '/admin/message/sendMessageByUserId' //发送消息
var templateListShort = ip + '/admin/message/getSmsMessageList' //短消息模板数据
var msgRecordsShort = ip + '/admin/message/getSmsMessageUserList' //短消息发送记录
var shortMsgAddEdit = ip + '/admin/message/addMessageForSms' //短消息的添加和修改
var sendShortMsg = ip + '/admin/message/sendSmsMessageByUserId' //发送短消息
// 修改教练员信息
var LL_alterCoach = ip + "/admin/updateAreaAdmin";
// 教练员修改申请列表
var LL_findAdminApproveList = ip + "/admin/approve/findAdminApproveList";
// 教练员管理员修改审批
var LL_updateAdminApprove = ip + '/admin/approve/updateAdminApprove';
// 教练员审批流程
var LL_findApproval = ip + '/admin/approve/findApproval';
var compotitionLogs = ip + '/admin/newCompetition/findNewcompetitionLogByComId' //记录赛事审核流程
var findExamineFootballCertificateList = ip + '/admin/findExamineFootballCertificateList' //制证申请审核列表 page：当前页 limit：当前页显示条数
var updateFootballCertificateStatus = ip + '/admin/updateFootballCertificateStatus' //制证申请审核 id：制证申请id status：审核状态 1等待审批 2通过审批 3制证中 4快递中 9审核拒绝 expressCompany：快递公司 expressNumber：快递单号
var LL_upPwdTost = ip + '/admin/updatecoachpwd';
var LL_batchAuthUserInfo = ip + '/admin/batchAuthUserInfo' //批量审核；
var LL_refund = ip + '/user/refund/refund' //退款申请；
var getNewcompetitionLists = ip + "/admin/newCompetition/getNewcompetitionLists" //审批赛事列表
var findRefereeListByNewcompetitionId = ip + "/admin/newCompetition/findRefereeListByNewcompetitionId" //已确认裁判员
var findTeamApplyListByNewcompetitionId = ip + "/admin/newCompetition/findTeamApplyListByNewcompetitionId" //报名全部球队
var findTeamApplyStatusListByNewcompetitionId = ip + "/admin/newCompetition/findTeamApplyStatusListByNewcompetitionId" //报名成功球队
var findGroupAuthLog = ip + "/admin/findGroupAuthLog" //团队日志
var getIsNotReadMessage = ip + '/admin/message/getIsNotReadMessage' //个人信息获取未读消息数量
var changeIsRead = ip + '/admin/message/changeIsRead' //已读标记为未读
var getAllOAMessageList = ip + '/admin/message/getAllOAMessageList' //获取oa全部消息列表
var getMessageDetails = ip + '/admin/message/getMessageDetails' //根据消息id查询详情
var delMessageByMessageId = ip + '/admin/ message/delMessageByMessageId' //删除消息
var getNewCompetitionListByOrgsId = ip + '/admin/getNewCompetitionListByOrgsId' //正在审核的赛事数量（主办方）
var findNewcompetitionByOrganizersId = ip + '/admin/newCompetition/findNewcompetitionByOrganizersId' //主办方赛事审核未通过的列表
var ConfirmationApply = ip + '/admin/newCompetition/ConfirmationApply' //球队报名缴纳保证金接口
var getTeamNotPassReason = ip + '/admin/newCompetition/getTeamNotPassReason' //获取球队报名失败的原因
var teamApplyAuditList = ip + '/admin/newCompetition/teamApplyAuditList' //获取某赛事下的球队列表
var teamApplyAudit = ip + '/admin/newCompetition/teamApplyAudit' //赛事管理员审核球队报名1通过，0拒绝
var ConfirmationPayment = ip + '/admin/newCompetition/ConfirmationPayment' //赛事管理员确认收到保证金
var getNewCompetitionListByRefereeId = ip + '/admin/getNewCompetitionListByRefereeId' //裁判员身份，被招募的赛事数量
var getCountByRefereeId = ip + '/admin/getCountByRefereeId' //裁判员身份，被招募的赛事数量
var updateRoundCompetitionData = ip + '/admin/competitionData/updateRoundCompetitionData' //保存本场次赛事数据 参数 roundId：场次id
var downloadPlayerExcelTemplate = ip + '/admin/player/downloadPlayerExcelTemplate' //球员批量导入下载模板
var uploadPlayer = ip + '/admin/player/uploadPlayer' //球员批量导入下载模板
var getAdminByAdminId = ip + '/admin/getAdminByAdminId' //判断身份